import * as React from 'react';

import AbsSimpleAttrRenderer from './AbsSimpleAttrRenderer';

class StringAttrRenderer extends AbsSimpleAttrRenderer<undefined> {

  protected renderContent() {
    const {attribute} = this.props;
    const attrVal: any = this.getAttrVal();

    return (
      <input name={attribute.name} value={attrVal} onChange={this.changeHandler} placeholder={attribute.placeholder}/>
    );
  }
}

export default StringAttrRenderer;
